package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentApi {

    //分页查询
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment comments);

    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);


    List<Comment> hasCount(ObjectId comentsid, Long userId);

    void updatalikeCount(String comentsid);

    void updatalikeCountj(String comentsid);
}